.PHONY: refresh build install build_dist json release lint test clean

version=1.0.0

refresh: clean build install lint

build:
	python3 setup.py build

install:
	pip install .

build_dist:
	make clean
	python3 setup.py build
	pip install dist/*.whl

build_image:
	make clean
	make setup.py build
	docker build -t crawler:${version} .

lint:
	mypy src/

# test:
# 	python -m unittest

clean:
	rm -rf __pycache__
	rm -rf src/crawler/__pycache__
	rm -rf src/crawler/*/__pycache__
	rm -rf src/crawler/extentions/*/__pycache__
	rm -rf build
	rm -rf dist
	rm -rf crawler.egg-info

clean_log:
	rm -rf logs

clean_data:
	rm -rf data

clean_all: clean clean_log clean_data
